package com.wolf.etl.enumeration;


import org.springframework.util.StringUtils;

/**
 * Created by tommy's father on 2017/8/30.
 */
public enum IS_DYNAMIC {
    YES("YES"),
    NO("NO");

    private String isDynamic;

    IS_DYNAMIC(String isDynamic) {
        this.isDynamic = isDynamic;
    }

    public String getIsDynamicValue() {
        return this.isDynamic;
    }

    public boolean isEquals(String isDynamic) {
        if (StringUtils.isEmpty(isDynamic)) {
            return false;
        }
        return this.isDynamic.equalsIgnoreCase(isDynamic.trim());
    }
}
